/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package amount;

import rule.Rule;
import score.Score;

/**
 *
 * @author Daniel Gribel
 */
public abstract class Amount extends Rule {
    
    public Amount(Score score, String name) {
        super(score, name);
    }
    
    @Override
    public void checkConditions(String data) {
        setCounter(0);
        for (char a : data.toCharArray())
            checkClauses(a);
    }
    
    @Override
    public abstract void checkClauses(char character);

}
